<%--
  Created by IntelliJ IDEA.
  User: huashuowei
  Date: 2019/4/14
  Time: 20:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="User.UserDTO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆窗口</title>
</head>
<body>
<%
    UserDTO localUser=(UserDTO)session.getAttribute("LocalUser");

    if(localUser==null){
%>
<a href="https://cas.dgut.edu.cn?appid=javaee&state=STATE">登录</a>
<%
}else{
%>
<p>学号:<%=localUser.getusername()%></p>
<p>姓名:<%=localUser.getname()%></p>
<p>分组:<%=localUser.getgroup()%></p>
<p>Openid:<%=localUser.getopenid()%></p>
<p>Wx_openid:<%=localUser.getWx_openid()%></p>
<a href="/logout">退出</a>
<%
    }

%>


</body>
</html>